Notification Message Management Method, and Terminal

ABSTRACT

A method includes detecting a user-input instruction for displaying a user interface for notification management and displaying the user interface for notification management. The user interface for notification management includes a classification option. The method further includes receiving a user-input instruction for selecting the classification option, displaying at least two application types, detecting a user-input instruction for selecting an option of one application type of the at least two application types, displaying, in a same user interface, an identifier of at least one application corresponding to the selected application type, displaying a setting option of a UI prompt manner of a notification message for each of the at least one application, detecting an operation of a user on the setting option of the UI prompt manner of the at least one application, and saving the setting option of the UI prompt manner of the at least one application after the user operation.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.15/771,164, filed on Apr. 26, 2018, which is a national stage ofInternational Application No. PCT/CN2016/094410, filed on Aug. 10, 2016.Both of the aforementioned applications are hereby incorporated byreference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the communications field, and further,to a notification message management method and a terminal.

BACKGROUND

At present, use of a mobile phone is becoming more common. In additionto some applications (for example, dialing, a short messaging service(SMS) message, a calendar, a radio, an application store) provided in anoperating system, the mobile phone itself may further install, accordingto a user instruction, an application (for example, a socialapplication, a bank application, a shopping application) provided by athird-party application developer. Many applications provide anotification message to notify a user that content, a condition, or thelike of the application has been updated. The mobile phone offers aplurality of ways to prompt the notification message, for example, avisual prompt, a voice prompt, and a vibration prompt. The visual promptincludes displaying the notification message on a screen of the mobilephone (that is, reminding using a user interface), or performing aprompt using luminance of an indicator light on the mobile phone, and soon.

In other approaches, a prompt manner of the notification message for theapplication can be set in an automatic or a manual manner. An automaticsetting manner (such as Chinese Patent Application CN105228109A)includes that the mobile phone determines, according to a usage habit ofthe user or content of an application prompt message, whether toinstantly prompt, or determines an importance level of the notificationmessage according to a relationship between a received notificationmessage and a current user interface (such as Chinese Patent ApplicationCN104584488A), and different importance levels correspond to differentprompt manners. However, the user cannot voluntarily make a choice inthis setting manner, and an actual requirement of the user is notnecessarily met.

In a manual setting manner, the mobile phone provides a user interfacefor notification management in order to manage a prompt manner of anapplication notification message. The user interface for notificationmanagement shown in FIG. 1A is used as an example. 101 indicates astatus bar, and the status bar 101 includes a mobile network signalicon, an operator icon, a WiFi icon, a time, a remaining battery powerpercentage, and a battery icon from left to right successively. The userinterface for notification management displays several applications suchas a calendar, an email, music, a radio, an SMS message, and a theme.The bottom of FIG. 1A further includes a navigation bar 102, and thenavigation bar 102 includes a button used to hide the navigation bar, aback button, a home button, and an overview button from left to rightsuccessively.

After the user taps a calendar option according to FIG. 1B, the mobilephone may enter a user interface of FIG. 1C, and the user may set, inthis interface, whether to allow a notification of the calendar, whetherto allow a preferential prompt of the calendar, and whether to enablethree reminding manners of the calendar.

However, after the user sets, in FIG. 1C, a prompt manner of anotification message for one application, if the user wants to set aprompt manner of a notification message for another application, theuser needs to return to the user interface shown in FIG. 1A and thenselect the other application. Therefore, efficiency of this manner formanaging the notification message is not high, and especially when theuser sets prompt manners of notification messages for a plurality ofapplications, operations are cumbersome.

SUMMARY

Embodiments of the present disclosure provide a notification messagemanagement method and a terminal in order to improve efficiency ofmanaging a notification message and simplify a user operation.

According to a first aspect, an embodiment of the present disclosureprovides a method, used for a terminal, where at least one applicationthat is capable of providing a notification message is installed on theterminal, and the method includes: detecting a user-input instructionfor displaying a user interface (UI) for notification management (theinstruction may be tapping a “setting” icon on a desktop of theterminal, and so on); displaying the user interface for notificationmanagement, where the user interface for notification managementincludes a classification option (such as a “classification” button);receiving a user-input instruction for selecting the classificationoption; displaying options of at least two application types; detectinga user-input instruction for selecting an option of one application typeof the at least two application types; displaying, in a same userinterface, an identifier of at least one application corresponding tothe selected application type and displaying a setting option of a UIprompt manner of a notification message for each of the at least oneapplication; detecting an operation of a user on the setting option ofthe UI prompt manner of the at least one application; and saving thesetting option of the UI prompt manner of the at least one applicationafter the user operation.

Optionally, the setting option herein is used to enable or disable oneor several UI prompt manners of the notification message. Whensubsequently receiving a new notification message, the terminal maydetermine, according to the setting option herein, whether thenotification message needs to be prompted, and which manner is used forprompting. Because in this method, an application is classifiedaccording to the application type, after selecting one application type,the user may set, in one interface, notification messages of allapplications corresponding to the application type in order to reduce auser switching operation between user interfaces and improve operationefficiency of managing the notification message.

Optionally, the foregoing steps of detecting the instruction fordisplaying the user interface for notification management, accessing theuser interface for displaying notification management, and receiving theuser instruction for selecting the classification option may be omitted.The terminal may detect a user-input instruction (for example, theinstruction may be an instruction for sliding to a center along one edgeof a screen, or another specific gesture), in another interface (forexample, a home interface, a lockscreen interface), for displaying aninterface for classification, and then display the options of the atleast two application types and subsequent steps.

In a first possible implementation of the first aspect, the applicationtype is classifying an application according to the UI prompt manner ofthe notification message for the application. In this implementation,classifying the application according to a commonly-seen UI promptmanner is provided such that a user may set in batches the applicationsthat use a same UI prompt manner of the notification message. The usermay choose, in a same user interface, to enable or disable the UI promptmanner of the notification message in order to filter the applicationsthat use the UI prompt manner of the notification message. Therefore,the user operation is simpler.

In a second possible implementation of the first aspect, the applicationtype includes at least two of the following: blocking all notificationmessages for the application at a time, a lockscreen notification, abanner, a badge, a notification panel, a rolling notification, or aToast. An application corresponding to blocking all notificationmessages for the application at a time may enable or disable all UIprompts of a notification message for the application using one switch.The application may be selected by the user, or may be set by a mobilephone vendor or an application provider. For the setting option of theUI prompt manner of the notification message for the applicationcorresponding to the application type, refer to the content in Table 1.Optionally, the application type includes only the lockscreennotification, the banner, the badge, and the notification panel.

In a third possible implementation of the first aspect, the applicationtype is classifying an application according to frequency that theapplication provides the notification message (that is, classifying anapplication according to a quantity of times the application providesthe notification message in a period of time), or the application typeis classifying an application according to frequency that thenotification message for the application is read (that is, classifyingan application according to a quantity of times the notification messagefor the application is read in a period of time), or the applicationtype is classifying an application according to the prompt manner of thenotification message currently being prompted. In this implementation,another classification manner is further provided such that a managementmanner of the notification message is more diversified, and a userrequirement is more easily met.

In a fourth possible implementation of the first aspect, after thesaving the setting option of the UI prompt manner of the at least oneapplication after the user operation, the method further includes:receiving a new notification message; searching for an identifier of anapplication of the new notification message; determining a UI promptmanner of the new notification message according to the saved settingoption of the UI prompt manner of the at least one application and theidentifier of the application of the new notification message; andprompting the new notification message according to the UI prompt mannerof the new notification message. A setting result of the notificationmessage in this implementation is applied to a prompt of the terminalfor a next notification message.

According to a second aspect, an embodiment of the present disclosureprovides a method, used for a terminal, where at least one applicationthat is capable of providing a notification message is installed on theterminal, and the method includes: detecting a user-input instructionfor displaying a user interface (UI) for notification management;displaying the user interface for notification management, where theuser interface for notification management includes a classificationoption; detecting a user-input instruction for selecting theclassification option; displaying an option of a first UI prompt mannerand an option of a second UI prompt manner, where the first UI promptmanner is different from the second UI prompt manner; detecting aninstruction of a user for selecting the option of the first UI promptmanner; displaying in a same user interface: an identifier of a firstapplication corresponding to the first UI prompt manner, an identifierof a second application corresponding to the first UI prompt manner,whether to disable a toggle of the first UI prompt manner of anotification message for the first application, and whether to disable atoggle of the second UI prompt manner of a notification message for thesecond application; detecting an operation of the user for disabling thefirst UI prompt manner of the first application and an operation of theuser for disabling the first UI prompt manner of the second application;and saving a setting that the first UI prompt manner of the firstapplication is disabled and a setting that the first UI prompt manner ofthe second application is disabled. This implementation provides amethod for setting a prompt manner of a notification message for a sametype of application. The application is classified into at least twotypes according to the prompt manner of the notification message. Theuser may complete setting of the application corresponding to the firstUI prompt manner in the same interface, that is, determine whether theapplication subsequently further needs to continue to use the first UIprompt manner to prompt the notification message. Therefore, the settingmanner is relatively highly efficient, and the user operation is simple.

Optionally, the foregoing steps of detecting the instruction fordisplaying the user interface for notification management, accessing theuser interface for displaying notification management, and receiving theuser instruction for selecting the classification option may be omitted.The terminal may detect a user-input instruction (for example, theinstruction may be an instruction for sliding to a center along one edgeof a screen, or may be another specific gesture), in another interface,for displaying an interface for classification, then display the optionof the first UI prompt manner and the option of the second UI promptmanner, and perform subsequent steps.

In a first possible implementation of the second aspect, the first UIprompt manner is any one of a lockscreen notification, a banner, abadge, a notification panel, a rolling notification, or a Toast, and thesecond UI prompt manner is any one of a lockscreen notification, abanner, a badge, a notification panel, a rolling notification, or aToast. In this implementation, the user may set in batches someapplications that use a same commonly-seen UI prompt manner, and thissetting manner is closer to a user requirement.

According to a third aspect, an embodiment of the present disclosureprovides a method, used for a terminal, where at least one applicationthat is capable of providing a notification message is installed on theterminal, and the method includes: detecting a user-input instructionfor displaying a UI for notification management; displaying the userinterface for notification management, where the user interface fornotification management includes a classification option; detecting auser-input instruction for selecting the classification option;displaying options of at least two application types, where theapplication type is classifying an application according to frequencythat a notification message for the application is read; detecting auser-input instruction for selecting an option of one application typeof the at least two application types; displaying, in a same userinterface, an identifier of at least one application corresponding tothe selected application type and displaying whether to disable a toggleof all UI prompt manners of a notification message for each of the atleast one application; detecting an operation of a user for disablingall UI prompt manners of notification messages for some applications ofthe at least one application; and saving a setting that all the UIprompt manners of the notification messages for some applications aredisabled. In this method, a specific notification message managementmanner is provided such that the user may enable or disable all UIprompt manners of a notification message for a commonly-used orseldom-used application at a time according to a usage habit of theuser. Especially a notification message for an application that is notcommonly used by the user, all UI prompts of the notification messagemay be blocked at a time in order to reduce interference to the user.

Optionally, the foregoing steps of detecting the instruction fordisplaying the user interface for notification management, accessing theuser interface for displaying notification management, and receiving theuser instruction for selecting the classification option may be omitted.The terminal may detect a user-input instruction (for example, theinstruction may be an instruction for sliding to a center along one edgeof a screen, or another specific gesture), in another interface, fordisplaying an interface for classification, and then display the optionsof the at least two application types and subsequent steps.

In a first possible implementation of the third aspect, after the savinga setting that all the UI prompt manners of the notification messagesfor some applications are disabled, the method further includes:receiving a new notification message; and if the new notificationmessage corresponds to one application of some applications, blocking aUI prompt of the new notification message. In this implementation, thatthe terminal processes a subsequently received notification message isprovided.

According to a fourth aspect, an embodiment of the present disclosureprovides a terminal, including: a touch panel; a display panel; amemory; at least one processor; and at least one application that iscapable of providing a notification message and one or more programs,where the one or more programs are stored in the memory and configuredto be executed by the one or more processors, the one or more programsinclude an instruction, and the instruction is used to: detect auser-input instruction for displaying a UI for notification management;display the user interface for notification management, where the userinterface for notification management includes a classification option;receive a user-input instruction for selecting the classificationoption; display options of at least two application types; detect auser-input instruction for selecting an option of one application typeof the at least two application types; display, in a same userinterface, an identifier of at least one application corresponding tothe selected application type and display a setting option of a UIprompt manner of a notification message for each of the at least oneapplication; detect an operation of a user on the setting option of theUI prompt manner of the at least one application; and save the settingoption of the UI prompt manner of the at least one application after theuser operation. The terminal corresponds to the method in the firstaspect, a related description of the first aspect is also applicable tothe terminal, and details are not repeated herein.

Optionally, the foregoing steps of detecting the instruction fordisplaying the user interface for notification management, accessing theuser interface for displaying notification management, and receiving theuser instruction for selecting the classification option may be omitted.The instruction may be used to: detect a user-input instruction (forexample, the instruction may be an instruction for sliding to a centeralong one edge of a screen, or another specific gesture), in anotherinterface, for displaying an interface for classification, and thendisplay the options of the at least two application types and subsequentsteps.

In the first to the fourth implementations of the fourth aspect, theterminals corresponding to the first to the fourth implementations ofthe first aspect are respectively provided, related descriptions in thefirst to the fourth implementations of the first aspect are alsoapplicable to the terminals in the first to the fourth implementationsof the fourth aspect, and details are not repeated herein.

According to a fifth aspect, an embodiment of the present disclosureprovides a terminal, including: a touch panel; a display panel; amemory; at least one processor; and at least one application that iscapable of providing a notification message and one or more programs,where the one or more programs are stored in the memory and configuredto be executed by the one or more processors, the one or more programsinclude an instruction, and the instruction is used to: detect auser-input instruction for displaying a UI for notification management;display the user interface for notification management, where the userinterface for notification management includes a classification option;detect a user-input instruction for selecting the classification option;display an option of a first UI prompt manner and an option of a secondUI prompt manner, where the first UI prompt manner is different from thesecond UI prompt manner; detect an instruction of a user for selectingthe option of the first UI prompt manner; display in a same userinterface: an identifier of a first application corresponding to thefirst UI prompt manner, an identifier of a second applicationcorresponding to the first UI prompt manner, whether to disable a toggleof the first UI prompt manner of a notification message for the firstapplication, and whether to disable a toggle of the second UI promptmanner of a notification message for the second application; detect anoperation of the user for disabling the first UI prompt manner of thefirst application and an operation of the user for disabling the firstUI prompt manner of the second application; and save a setting that thefirst UI prompt manner of the first application is disabled and asetting that the first UI prompt manner of the second application isdisabled. The terminal corresponds to the method in the second aspect, arelated description of the second aspect is also applicable to theterminal, and details are not repeated herein.

Optionally, the foregoing steps of detecting the instruction fordisplaying the user interface for notification management, accessing theuser interface for displaying notification management, and receiving theuser instruction for selecting the classification option may be omitted.The instruction may be used to: detect a user-input instruction (forexample, the instruction may be an instruction for sliding to a centeralong one edge of a screen, or may be another specific gesture), inanother interface, for displaying an interface for classification, andthen display the option of the first UI prompt manner, the option of thesecond UI prompt manner, and subsequent steps.

In a first implementation of the fifth aspect, the terminalcorresponding to the first implementation of the second aspect isprovided, a related description in the first implementation of thesecond aspect is also applicable to the terminal in the firstimplementation of the fifth aspect, and details are not repeated herein.

According to a sixth aspect, an embodiment of the present disclosureprovides a terminal, including: a touch panel; a display panel; amemory; at least one processor; and at least one application that iscapable of providing a notification message and one or more programs,where the one or more programs are stored in the memory and configuredto be executed by the one or more processors, the one or more programsinclude an instruction, and the instruction is used to: detect auser-input instruction for displaying a UI for notification management;display the user interface for notification management, where the userinterface for notification management includes a classification option;detect a user-input instruction for selecting the classification option;display options of at least two application types, where the applicationtype is classifying an application according to frequency that anotification message for the application is read; detect a user-inputinstruction for selecting an option of one application type of the atleast two application types; display, in a same user interface, anidentifier of at least one application corresponding to the selectedapplication type and display whether to disable a toggle of all UIprompt manners of a notification message for each of the at least oneapplication; detect that a user disables all UI prompt manners ofnotification messages for some applications of the at least oneapplication; and save a setting that all the UI prompt manners of thenotification messages for some applications are disabled. The terminalcorresponds to the method in the third aspect, a related description ofthe third aspect is also applicable to the terminal, and details are notrepeated herein.

Optionally, the foregoing steps of detecting the instruction fordisplaying the user interface for notification management, accessing theuser interface for displaying notification management, and receiving theuser instruction for selecting the classification option may be omitted.The instruction may be used to: detect a user-input instruction (forexample, the instruction may be an instruction for sliding to a centeralong one edge of a screen, or another specific gesture), in anotherinterface, for displaying an interface for classification, and thendisplay the options of the at least two application types and subsequentsteps.

In a first implementation of the sixth aspect, the terminalcorresponding to the first implementation of the third aspect isprovided, a related description in the first implementation of the thirdaspect is also applicable to the terminal in the first implementation ofthe sixth aspect, and details are not repeated herein.

According to a seventh aspect, an embodiment of the present disclosureprovides a computer-readable storage medium that stores one or moreprograms, where the one or more programs include an instruction, andwhen being executed by a terminal that includes a touch panel, a displaypanel, and a plurality of applications, the instruction enables theterminal to perform the method according to any one of the first aspect,or the first to the fourth implementations of the first aspect.

According to an eighth aspect, an embodiment of the present disclosureprovides a computer-readable storage medium that stores one or moreprograms, where the one or more programs include an instruction, andwhen being executed by a terminal that includes a touch panel, a displaypanel, and a plurality of applications, the instruction enables theterminal to perform the method according to the second aspect, or thefirst implementation of the second aspect.

According to a ninth aspect, an embodiment of the present disclosureprovides a computer-readable storage medium that stores one or moreprograms, where the one or more programs include an instruction, andwhen being executed by a terminal that includes a touch panel, a displaypanel, and a plurality of applications, the instruction enables theterminal to perform the method according to the third aspect, or thefirst implementation of the third aspect.

According to another aspect, an embodiment of the present disclosurefurther provides a graphical user interface of a terminal, where theterminal includes a touch panel, a display panel, a memory, a pluralityof applications, and one or more processors configured to execute one ormore programs stored in the memory, and the graphical user interfaceincludes: a user interface configured to display notificationmanagement, a user interface configured to display two applicationtypes, and a user interface configured to display an identifier of atleast one application corresponding to an application type selected by auser and a setting option of a UI prompt manner of a notificationmessage for each of the at least one application, where the userinterface displaying notification management includes a classificationoption; responding to a detected user-input instruction for displaying aUI for notification management, the user interface configured to displaynotification management starts to display; responding to a detecteduser-input instruction for selecting the classification option, the userinterface configured to display the options of the at least twoapplication types starts to display; responding to a detected user-inputinstruction for selecting one application type of the at least twoapplication types, the user interface configured to display theidentifier of the at least one application corresponding to the selectedapplication type and the setting option of the UI prompt manner of thenotification message for each of the at least one application starts todisplay; and responding to an operation of a user on the setting optionof the UI prompt manner of the at least one application, displaying ofthe user interface configured to display the identifier of the at leastone application corresponding to the selected application type and thesetting option of the UI prompt manner of the notification message foreach of the at least one application is changed. The changed displayingherein refers to changing at least one of a color, a shape, a size,luminance, or transparency of the setting option of the UI prompt mannerof the notification message for the at least one application accordingto the operation of the user on the setting option of the UI promptmanner of the at least one application. The graphical user interfacecorresponds to the method in the first aspect, and a correspondingdescription is also applicable to the graphical user interface.

The foregoing user interface configured to display notificationmanagement is optional. Responding to a user-input instruction fordisplaying an interface for classification in another interface (such asa home interface or a lockscreen interface), the user interfaceconfigured to display the options of the at least two application typesstarts to display.

According to another aspect, an embodiment of the present disclosurefurther provides a graphical user interface of a terminal, where theterminal includes a touch panel, a display panel, a memory, a pluralityof applications, and one or more processors configured to execute one ormore programs stored in the memory, and the graphical user interfaceincludes: a user interface configured to display notificationmanagement, a user interface configured to display an option of a firstUI prompt manner and an option of a second UI prompt manner, and a userinterface configured to display an identifier of at least oneapplication corresponding to an application type and display whether todisable a toggle of all UI prompt manners of a notification message foreach of the at least one application, where responding to a detecteduser-input instruction for displaying a UI for notification management,the user interface configured to display notification management startsto display; responding to a detected user-input instruction forselecting the classification option, the user interface configured todisplay the option of the first UI prompt manner and the option of thesecond UI prompt manner starts to display; responding to a detecteduser-input instruction for selecting the option of the first UI promptmanner, the user interface configured to display the identifier of theat least one application corresponding to the application type anddisplay whether to disable the toggle of all the UI prompt manners ofthe notification message for each of the at least one application startsto display; and responding to an operation of a user for disabling thefirst UI prompt manner of the first application and an operation of theuser for disabling the first UI prompt manner of the second application,displaying of the user interface configured to display the identifier ofthe at least one application corresponding to the application type anddisplay whether to disable the toggle of all the UI prompt manners ofthe notification message for each of the at least one application ischanged. The changed displaying herein includes: according to theoperation of the user for disabling the first UI prompt manner of thefirst application and the operation of the user for disabling the firstUI prompt manner of the second application, changing at least one of acolor, a shape, luminance, or transparency of a toggle of all UI promptmanners of the notification message for the first application, andchanging at least one of a color, a size, a shape, luminance, ortransparency of a toggle of all UI prompt manners of the notificationmessage for the second application. The graphical user interfacecorresponds to the method in the second aspect, and a correspondingdescription is also applicable to the graphical user interface.

The foregoing user interface configured to display notificationmanagement is optional. Responding to a user-input instruction fordisplaying an interface for classification in another interface (such asa home interface or a lockscreen interface), the user interfaceconfigured to display the option of the first UI prompt manner and theoption of the second UI prompt manner starts to display.

According to another aspect, an embodiment of the present disclosurefurther provides a graphical user interface of a terminal, where theterminal includes a touch panel, a display panel, a memory, a pluralityof applications, and one or more processors configured to execute one ormore programs stored in the memory, and the graphical user interfaceincludes: a user interface configured to display notificationmanagement, a user interface configured to display options of at leasttwo application types, and a user interface configured to display anidentifier of at least one application corresponding to an applicationtype selected by a user and display a setting option of a UI promptmanner of a notification message for each of the at least oneapplication, where responding to a detected user-input instruction fordisplaying a UI for notification management, the user interfaceconfigured to display notification management starts to display;responding to a user-input instruction for selecting the classificationoption, the user interface configured to display the options of the atleast two application types starts to display; responding to auser-input instruction for selecting an option of one application typeof the at least two application types, the user interface configured todisplay the identifier of the at least one application corresponding tothe application type selected by the user and display the setting optionof the UI prompt manner of the notification message for each of the atleast one application starts to display; and responding to an operationof the user on the setting option of the UI prompt manner of the atleast one application, displaying of the user interface configured todisplay the identifier of the at least one application corresponding tothe application type selected by the user and the setting option of theUI prompt manner of the notification message for each of the at leastone application is changed. The changed displaying herein includes:changing at least one of a color, a shape, a size, luminance, ortransparency of the setting option of the UI prompt manner of thenotification message for the at least one application according to theoperation of the user on the setting option of the UI prompt manner ofthe at least one application. The graphical user interface correspondsto the method in the third aspect, and a corresponding description isalso applicable to the graphical user interface.

The foregoing user interface configured to display notificationmanagement is optional. Responding to a user-input instruction fordisplaying an interface for classification in another interface (such asa home interface or a lockscreen interface), the user interfaceconfigured to display the options of the at least two application typesstarts to display.

According to another aspect, an embodiment of the present disclosurefurther provides a notification message management method, used for aterminal, where at least one application that is capable of providing anotification message is installed on the terminal, and the methodincludes: detecting a user-input instruction for displaying a UI fornotification management; displaying the user interface for notificationmanagement, where the user interface for notification managementincludes a classification option; detecting a user-input instruction forselecting the classification option; displaying options of at least twoapplication types, where the application type is classifying anapplication according to a UI prompt manner of a notification messagecurrently being displayed; detecting a user-input instruction forselecting an option of a first application type of the at least twoapplication types; displaying, in a same user interface, an identifierof at least one application corresponding to the first application typeand displaying a cancel button corresponding to each of the at least oneapplication, where the cancel button is used to cancel a UI prompt thatcorresponds to the first application type and that is of a notificationmessage of a corresponding application; detecting an operation of a userfor cancelling a UI prompt of notification messages for someapplications of the at least one application; and cancelling the UIprompt that corresponds to the first application type and that is of thenotification messages for some applications. This method enables theuser to cancel, according to a UI prompt manner, prompts in batches forthe notification message that is performing the UI prompt. Thiseliminates a trouble that the user performs an operation on a singleapplication, and improves efficiency of cancelling a prompt of anotification message. Optionally, the application type includes a badgeor a notification panel.

Optionally, the foregoing steps of detecting the instruction fordisplaying the user interface for notification management, accessing theuser interface for displaying notification management, and receiving theuser instruction for selecting the classification option may be omitted.The terminal may detect a user-input instruction (for example, theinstruction may be an instruction for sliding to a center along one edgeof a screen, or another specific gesture), in another interface, fordisplaying an interface for classification, and then display the optionsof the at least two application types and subsequent steps.

According to another aspect, an embodiment of the present disclosureprovides a terminal, including a touch panel, a display panel, a memory,at least one processor, and at least one application that is capable ofproviding a notification message and one or more programs, where the oneor more programs are stored in the memory and configured to be executedby the one or more processors, the one or more programs include aninstruction, and the instruction is used to execute the method providedin the foregoing another aspect.

According to another aspect, an embodiment of the present disclosurefurther provides a graphical user interface of a terminal, where theterminal includes a touch panel, a display panel, a memory, a pluralityof applications, and one or more processors configured to execute one ormore programs stored in the memory, and the graphical user interfaceincludes: a user interface configured to display notificationmanagement, a user interface configured to display options of at leasttwo application types, and a user interface configured to display anidentifier of at least one application corresponding to the firstapplication type and display a cancel button corresponding to each ofthe at least one application, where responding to a detected user-inputinstruction for displaying a UI for notification management, the userinterface configured to display notification management starts todisplay; responding to a user-input instruction for selecting theclassification option, the user interface displaying the options of theat least two application types starts to display; responding to auser-input instruction for selecting an option of the first applicationtype of the at least two application types, the user interfaceconfigured to display the identifier of the at least one applicationcorresponding to the application type selected by the user and displaythe setting option of the UI prompt manner of the notification messagefor each of the at least one application starts to display; andresponding to an operation of the user for cancelling the UI prompt ofthe notification messages for some applications of the at least oneapplication, displaying of the user interface configured to display theidentifier of the at least one application corresponding to theapplication type selected by the user and the setting option of the UIprompt manner of the notification message for each of the at least oneapplication is changed. The changed displaying herein includes: changingat least one of a color, a shape, a size, luminance, or transparency ofthe setting option of the UI prompt manner of the notification messagesfor some applications according to the operation of the user forcancelling the UI prompt of the notification messages for someapplications of the at least one application. The graphical userinterface corresponds to the method in the third aspect, and acorresponding description is also applicable to the graphical userinterface.

The foregoing user interface configured to display notificationmanagement is optional. Responding to a user-input instruction fordisplaying an interface for classification in another interface (such asa home interface or a lockscreen interface), the user interfaceconfigured to display the options of the at least two application typesstarts to display.

Based on the foregoing technical solutions, the terminal may provide theuser with a simpler notification message management method and userinterface with higher efficiency such that the user implements batchmanagement of the application according to the application type. Inaddition, the terminal may provide the user with more personalizedchoices, for example, classifying the application according to theprompt manner of the notification message.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1A is a schematic diagram of a user interface for notificationmanagement of a mobile phone;

FIG. 1B is a schematic diagram of performing an operation on a userinterface for notification management in FIG. 1A of a mobile phone;

FIG. 1C is a schematic diagram of a user interface for setting acalendar notification of a mobile phone;

FIG. 2A is a schematic diagram of a user interface that uses a banner todisplay a notification message;

FIG. 2B is a schematic diagram of a user interface of a lockscreennotification;

FIG. 2C is a schematic diagram of a user interface that displays anotification message on a notification panel;

FIG. 2D is a schematic diagram of a user interface that uses a badge todisplay a notification message;

FIG. 3A is a schematic structural diagram of hardware of a mobile phone;

FIG. 3B is a schematic diagram of a notification message managementmethod according to an embodiment of the present disclosure;

FIG. 3C is a table of a UI prompt manner of a notification message foran application according to an embodiment of the present disclosure;

FIG. 4A is a schematic diagram of a user interface according to anembodiment of the present disclosure;

FIG. 4B to FIG. 4F are schematic diagrams of a user interface accordingto a scenario 1 of an embodiment of the present disclosure;

FIG. 5A is a flowchart of a method for classifying an applicationaccording to a scenario 2 of an embodiment of the present disclosure;

FIG. 5B and FIG. 5C are schematic diagrams of a user interface accordingto a scenario 2 of an embodiment of the present disclosure;

FIG. 6A is a flowchart of a method for classifying an applicationaccording to a scenario 3 of an embodiment of the present disclosure;

FIG. 6B and FIG. 6C are schematic diagrams of a user interface accordingto a scenario 3 of an embodiment of the present disclosure; and

FIG. 7A and FIG. 7B are schematic diagrams of a user interface accordingto a scenario 4 of an embodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of thepresent disclosure clearer, the following further describes the presentdisclosure in detail with reference to the accompanying drawings.

A terminal in embodiments of the present disclosure includes a mobilephone, a tablet computer, a personal digital assistant (PDA), a point ofsales (POS), or the like. At least one application is installed on theterminal, and the application may provide a notification message. If theterminal may receive a notification message from an external applicationA or the terminal generates a notification message of an application Aaccording to local information, the application A may provide thenotification message.

The notification message for the application in the embodiments of thepresent disclosure is used to notify a user of some information aboutthe application, the notification message may be a digest of theinformation, or the information itself, and occasionally thenotification message further includes a sender of the information, asending time, an application icon, or the like. For example, anotification message for an SMS application may notify the user that theterminal receives a new SMS message, or has successfully sent an SMSmessage. A notification message for a dialing application may notify theuser that the terminal has several missed calls. A notification messagefor an application market may notify the user that new versions of someapplications may be downloaded. A notification message for a calendarapplication may notify the user that a specified reminding time isalready reached, and so on. The notification message may be from anapplication server (for example, a notification message sent by a gameserver), or may be generated by a processor of the terminal (forexample, a notification message for the calendar application), and asource of the notification message is not limited in the embodiments ofthe present disclosure.

The “option” in the embodiments of the present disclosure includes abutton (such as 421) in a user interface, a subitem (such as 401) in atable (table), or the like. When the user selects an “option”, theterminal displays a user interface corresponding to the option. Forexample, a pop-up window is superimposed in a user interface displayedbefore the selection operation, or a user interface displayed before theselection operation is switched to the user interface corresponding tothe option. Alternatively, when the user performs a setting operation ona toggle in an “option”, at least one of a color, a shape, a size,luminance, or transparency of the toggle in the “option” is changed.

The notification message in the embodiments of the present disclosuremay be prompted in a plurality of manners. A visual reminder furtherincludes displaying the notification message on a screen of the mobilephone, that is, the notification message is prompted using the userinterface. A manner of prompting the notification message using the userinterface, that is, a UI prompt manner of the notification message,further includes at least one of the following: (1) a banner, that is, aheads-up notification, (2) a lockscreen notification, (3) a badge, (4) anotification panel, (5) a rolling notification, (6) a toast, or thelike.

The heads-up notification is generally that a small floating window isdisplayed on a screen top of a non-lockscreen interface to prompt theuser such that the user quickly responds to the notification withoutexiting a current browsing interface. The heads-up notification maysupport slideup for clear and slidedown into the notification panel, andmay further display some operation options, such as answering a call orrejecting a call. For example, as shown in FIG. 2A, at the top of a homeinterface, a notification message for a weather application is displayedin a heads-up notification manner.

The lockscreen notification is a notification displayed in a lockscreeninterface. For example, a notification message for an email applicationand the notification message for the weather application are displayedin the middle of the lockscreen interface shown in FIG. 2B.

A prompt manner of the notification panel allows the user to viewdetailed information about a notification after a drawer typenotification panel is displayed. For example, FIG. 2C shows a userinterface of a notification panel. In addition to including somecommonly-seen setting options, the interface of the notification panelfurther includes the notification message for the email application andthe notification message for the weather application. One or morenotification messages may be deleted using a garbage box button at thebottom of the interface.

A prompt manner of the badge is generally to display a quantity ofnotification messages in an upper right corner of an application icon.For example, as shown in FIG. 2D, a badge 201 in an upper right cornerof a phone icon is 2, indicating that there are two missed calls, and abadge 202 in an upper right corner of an SMS message icon is 3,indicating that there are three unread SMS messages.

The toast is generally a floating window that pops up from the bottom ofthe screen of the non-lockscreen interface, and is used to prompt abrief notification message, but cannot display some operation options. Aposition of the toast may also be in another position of the screen.

The rolling notification is generally in a status bar or anotherposition of the screen of the non-lockscreen interface, and content ofthe notification message is displayed in a rolling manner.

There are many implementations to determine the prompt manner of thenotification message. In addition to the content described in thebackground, there are some other implementations such as a methodprovided in Chinese Patent Application CN104636142A, in which pushmessages with different purposes may be pushed according to differenttime periods. Notifications received by various applications in last tendays may be counted, and an application table and a notification messagereceived by each application are displayed in an interface fornotification management such that the user may determine whether toblock a notification of an application or notifications of severalapplications. However, this notification management manner is stillbased on a single application, and does not classify the application.Therefore, setting efficiency is not high.

In addition, there further is a method provided in Chinese PatentApplication CN104598238A, in which an application program table, forexample, a news type, a game type, and an instant messaging type, may bearranged, and classification management is performed. The user mayselect “reserve a social type”, and in this case, message pushingreminding of a social program is enabled, and a message pushing serviceof another application program is disabled. When the user taps a“restore all” button, an intelligent terminal cancels a notificationblocking function for a third-party application program, and a messagepushing function of the third-party application program is enabled.However, this notification management manner is based on applicationclassification, but the classification can only be based on whether theapplication belongs to the news type, the social type, or the instantmessaging type. This manner of classification for batch management isrelatively singular, and is not diversified enough, and still does notnecessarily meet an actual requirement of the user.

The terminal in the embodiments of the present disclosure classifiesapplications into at least two categories based on the UI prompt mannerof the notification message for the application, or based on frequencythat the notification message for the application is opened by the user,or according to a quantity of the notification message for theapplication in a period of time, or according to a prompt manner of anotification message currently being prompted. The terminal can displayall application types under a same classification criterion. When theuser selects an application type, the terminal displays all applicationsof the application type in a same user interface, and each displayedapplication has an option of at least one UI prompt manner. In the userinterface, the user may set, in batches using the option, the promptmanner of the notification message for all the applications that belongto a same application classification, without a need to switch aplurality of times between several interfaces. Therefore, the settingmanner of the notification message in the embodiments of the presentdisclosure enables the user to voluntarily make a choice, and thesetting manner is relatively diversified, setting efficiency is higher,and operation is easier.

It should be further understood that although the terms such as “first”and “second” may be used to describe various application types or UIprompt manners in this specification, the application types or UI promptmanners should not be limited by the terms. The terms are merely used todistinguish one application type from another application type, ordistinguish one UI prompt manner from another UI prompt manner.

FIG. 3A is a schematic structural diagram of a mobile phone 300according to an embodiment of the present disclosure. The mobile phone300 includes components such as a radio frequency (RF) circuit, amemory, an input unit, a display unit, a sensor, an audio frequencycircuit, a wireless fidelity (WiFi) module, a processor, and a powersupply. Persons skilled in the art may understand that the structure ofthe mobile phone shown in FIG. 3A imposes no limitation on the mobilephone, and the mobile phone may include more or fewer components thanthose shown in the figure, or may combine some components, or havedifferent component arrangements. The following further describes thecomponents of the mobile phone 300 with reference to FIG. 3A.

The RF circuit is configured to receive or send a signal in aninformation receiving or sending process or a call process, for example,a notification message for an application. In particular, afterreceiving downlink information of a base station, the RF circuit sendsthe downlink information to the processor for processing, and inaddition, sends designed uplink data to the base station. Generally, theRF circuit includes but is not limited to an antenna, at least oneamplifier, a transceiver, a coupler, a low noise amplifier (LNA), aduplexer, or the like. In addition, the RF circuit 110 may communicatewith a network and another device by means of wireless communication.Any communications standard or protocol may be used for the wirelesscommunication, including but not limited to: global system of/for mobilecommunication (GSM), general packet radio service (GPRS), code divisionmultiple access (CDMA), wideband code division multiple access (WCDMA),long term evolution (LTE), email, SMS, and the like.

The memory is configured to store a program and a module, and theprocessor runs the software program and the module that are stored inthe memory in order to invoke components such as the input unit (a touchpanel) and the display unit (a display panel) to execute variousfunctional applications of the mobile phone and perform data processing.The memory may mainly include a program storage area and a data storagearea. The program storage area may store an operating system, anapplication required by at least one function (such as a sound playingfunction, an image playing function, a dialing function, or an SMSmessage receiving or sending function), and the like; and the datastorage area may store data (such as the notification message for theapplication or a UI prompt manner of the notification message) createdaccording to use of the mobile phone 300, and the like. In addition, thememory may include a high-speed random access memory, and may furtherinclude a nonvolatile memory such as at least one magnetic disk storagecomponent, a flash memory component, or another volatile solid-statestorage component.

The input unit is configured to receive input numeral or characterinformation, and generate key signal input related to a user setting ofthe mobile phone 300 and function control of the mobile phone 300. In anembodiment, the input unit may include the touch panel and another inputdevice. The touch panel, also referred to as a touchscreen, may collecta touch operation (for example, an operation performed by a user on thetouch panel or near the touch panel using any proper object or accessorysuch as a finger or a stylus) of the user on or near the touch panel,and drive a corresponding connection apparatus according to a presetprogram. The touch panel includes two parts: a touch detection apparatusand a touch controller. The touch detection apparatus detects a touchposition of the user, detects a signal brought by the touch operation,and sends the signal to the touch controller. The touch controllerreceives touch information from the touch detection apparatus, convertsthe touch information into touch point coordinates, and sends the touchpoint coordinates to the processor, and can receive and execute acommand sent by the processor. In addition, the touch panel may beimplemented in a plurality of types, such as a resistive type, acapacitive type, infrared, or a surface acoustic wave. The input unitmay further include the other input device in addition to the touchpanel. In an embodiment, the other input device may include but is notlimited to one or more of a physical keyboard, a function key (such as avolume control key or an on/off key), a trackball, a mouse, a joystick,or the like.

The display unit is configured to display information that is input bythe user or information (such as the notification message) provided forthe user, and various operation interfaces of the mobile phone 100. Thedisplay unit may include the display panel. Optionally, the displaypanel may be configured using liquid crystal display (LCD), an organiclight-emitting diode (OLED), or the like. Further, the touch panel maycover the display panel. When detecting the touch operation on or nearthe touch panel, the touch panel sends the touch operation to theprocessor to determine a type of a touch event, and then the processorprovides corresponding visual output on the display panel according tothe type of the touch event. Although in FIG. 3A, the touch panel andthe display panel are used as two independent modules to implement inputand input functions of the mobile phone 300, in some embodiments, thetouch panel and the display panel may be integrated to implement theinput and output functions of the mobile phone 300. The display panel inthis embodiment of the present disclosure is configured to separatelydisplay, according to different instructions of the user, a userinterface for notification management, a user interface that includes anapplication type, and a user interface that includes all applications ofa same application type and a setting option of a UI prompt manner of anotification message for an application. The touch panel is configuredto receive a user-input instruction (such as taping and selecting a“classification” option) for accessing a classification interface and auser-input instruction for accessing a UI prompt manner settinginterface of notification messages for all the applications of anapplication type.

FIG. 3B is a schematic diagram of a process of managing a notificationmessage for an application according to an embodiment of the presentdisclosure. 311 shows some operations for managing a prompt manner ofthe notification message for the application, and a user may set theprompt manner of the notification message for the application using someuser interfaces shown in FIG. 4A to FIG. 4F. After the setting iscompleted, a processor stores a setting result into at least one datasetting item in a memory (310); when determining that a new notificationmessage arrives, the processor reads a data setting item and draws auser interface for the new notification message according to the readdata setting item (312); and when determining that there is a need todraw a user interface (as shown in FIG. 4F) of a table of an applicationcorresponding to an application type, the processor reads the datasetting item and draws the user interface of the table (or an option) ofthe application corresponding to the application type according to theread data setting item (313).

It may be understood that before the user sets the prompt manner of thenotification message for the application, a mobile phone vendor or anapplication provider may perform some initial settings for the promptmanner of the notification message for the application, and this is notlimited in the present disclosure. When drawing the user interface, inaddition to reading the data setting item in the memory, the processormay further need to read some other configuration data. For this part,refer to the other approaches, and details are not described hereinagain.

The data setting item is used to store a prompt manner of a notificationmessage for each application. For example, one data setting item maystore an identifier of at least one application and a switch value ofwhether each prompt manner of each application is enabled, as content ofa data setting item 1 shown in FIG. 3B.

FIG. 3C is a schematic diagram of a mapping relationship of a UI promptmanner of a notification message for an application that is capable ofproviding the notification message and that is stored in a terminal,where each row represents one application, each column represents one UIprompt manner of the notification message, “on” indicates that a UIprompt manner of a notification message for this column of anapplication of this row is enabled, and “off” indicates that a UI promptmanner of a notification message for this column of an application ofthis row is disabled. The mapping relationship may be stored by at leastone data item. When the processor performs a described-above step 312,for example, when the terminal draws a UI interface of a notificationmessage for an SMS message, the processor may read the mappingrelationship along a direction of X in order to determine that the SMSmessage should be prompted in a notification panel and a badge manner.When a described-above step 313 is performed, for example, when theprocessor needs to draw a user interface of a table of an applicationcorresponding to a banner, the processor may read the mappingrelationship along a direction of Y in order to determine thatapplications corresponding to the banner are a browser, an email, music,a photo, the SMS message, and a game.

In an implementation, when the touch panel detects an instruction fordisplaying the classification interface of the user (for example, anoperation that the user taps a “classification” button on a notificationmanagement interface, a specific gesture of the user on a homeinterface, the user presses a specific virtual key, or the user pressesa specific icon), the display panel displays a classification userinterface shown in FIG. 4A. The classification user interface includesthree application types: the banner, the badge, and the notificationpanel, and further includes a “cancel” button. When the touch paneldetects an operation that the user taps a “banner” option 401, theprocessor reads the foregoing data setting item, and the display paneldisplays a user interface shown in FIG. 4F, that is, displays allapplications whose “banner” prompt manner is enabled, and acorresponding setting button. The user may set, in this interface,whether notification messages for these applications: the browser, theemail, the music, the photo, the SMS message, and the game are still tobe prompted using the “banner” subsequently.

The following uses some specific scenarios for description.

Scenario 1

A processor reads content of a data setting item in a memory, andclassifies, according to a UI prompt manner of a notification messagefor an application, all applications that are capable of providingnotification messages and that are installed in the memory, including atleast two of the following: enabling or disabling at least two promptmanners of the notification message by tapping one key, a lockscreennotification, a banner, a badge, a notification panel, a rollingnotification, or a Toast. It may be understood that in this scenario,the application is classified according to a type of the prompt mannerof the notification message for the application. Because there may be aplurality of prompt manners of a notification message for a sameapplication, the same application may be classified into two or moreapplication types, and this is not limited in the present disclosure.

For applications corresponding to the “enabling or disabling at leasttwo prompt manners of the notification message by tapping one key”, atoggle for a setting option of a visual prompt manner of notificationmessages for the applications is: whether to enable all UI promptmanners of the notification message, or whether to enable severalspecific UI prompt manners of the notification message (for example, maybe the lockscreen notification plus the badge, or the notification panelplus the lockscreen notification plus the banner notification), and thismay be set by a user or set by a mobile phone manufacturer.

The following Table 1 shows a correspondence between an application typeand a setting option of the UI prompt manner of the notificationmessage.

TABLE 1 Switch button in the setting option of the UI prompt Applicationtype manner of the notification message Enabling or disabling at Whetherto enable all the UI prompt least two prompt manners manners of thenotification message; or of the notification message whether to enableseveral specific UI prompt by tapping one key manners of thenotification message Lockscreen notification Whether to enable thelockscreen notification Banner Whether to enable the banner BadgeWhether to enable the badge Notification panel Whether to enable thenotification panel Rolling notification Whether to enable the rollingnotification Toast Whether to enable the Toast

The following gives descriptions with reference to FIG. 3A and FIG. 4Bto FIG. 4F.

A display panel displays a non-lockscreen interface (for example, a homeinterface, that is, usually, a first interface that appears afterunlocking). The user drops down a status bar in a non-lockscreeninterface displayed in the display panel and taps a “setting” button inthe status bar, and the display panel displays a plurality ofsub-options of a setting. A touch panel detects that the user taps a“notification management” button, and the display panel displays anotification management interface (as shown in FIG. 4B). It may beunderstood that a manner of accessing the notification managementinterface is not limited thereto. For example, the user may further tapa “setting” icon in the home interface, and the display panel displays aplurality of sub-options of a setting. The touch panel detects that theuser taps the “notification management” button, and the display paneldisplays the notification management interface.

A top of the user interface shown in FIG. 4B is a commonly-seen statusbar, the icons included in the status bar are similar to those in FIG.1A, and details are not described herein again. Options of a pluralityof applications are under an option of notification management, andthese applications are applications that have been currently installedin a mobile phone and are capable of providing notification messages. Amiddle of FIG. 4B includes an application table 420. This table includesa plurality of items, and from top to bottom, the items are successivelya “browser” item 422, an “email” item 423, a “music” item, a “photo”item, an “SMS message” item, a “game” item, and a “Taobao” item. Inaddition, there further is a “classification” button 421 in a positionnear the bottom of the interface shown in FIG. 4B, (optionally, a“classification” item may also be added above the application table).When the touch panel detects that the user taps the “SMS message” item,the display panel displays a user interface shown in FIG. 4C. The usermay set a prompt manner of an SMS message in the user interface, and atoggle 434 in an “allow all” option 432 is used to set that all promptmanners including the notification panel, the badge, the banner, thelockscreen notification, and a voice prompt are disabled, or some of allthe prompt manners may be enabled. A toggle in a “notification panel”option is used to set whether to enable a prompt manner of thenotification panel. A toggle in a “badge” option is used to set whetherto enable a prompt manner of the badge. A toggle in a “banner” option isused to set whether to enable a prompt manner of the banner. A toggle ina “lockscreen” option is used to set whether to enable a prompt mannerof the lockscreen. A toggle in a “hide sensitive content when a screenis locked” is used to set whether a notification message displayed whenthe screen is locked includes the sensitive content (information such asa bank account, or an amount of money). A toggle in a “disable the voiceprompt” option is used to set whether to enable the voice prompt of thenotification message. The bottom of FIG. 4C is a navigation bar, anddetails are not described herein. When the user interface after a usersetting is shown in FIG. 4C, the user taps a return button 431 to exitthe interface shown in FIG. 4C, and then the processor stores the promptmanner of the notification message for the SMS message to the datasetting item in the memory. The prompt manner of the notificationmessage for the SMS message is: the notification panel, the banner, thelockscreen notification, the lockscreen notification excluding thesensitive content, and the voice prompt. Because the badge is notselected by the user, the prompt manner of the badge keeps disabled.

When the touch panel detects an operation of the user for tapping the“classification” item in the user interface for notification management(as shown in FIG. 4D), the processor draws a user interface forclassification of the applications according to the foregoingclassification result, and the display panel displays a pop-up windowfor the classification. As shown in FIG. 4E, the pop-up window includesfive selectable classification options: a “blocking all notificationmessages for the application at a time” option 451, “the notificationpanel”, “the banner”, “the badge”, and “the lockscreen notification”.The pop-up window further includes a “cancel” button.

When the touch panel detects an operation of the user for taping the“banner” option, the display panel displays a user interface shown inFIG. 4F.

The user interface shown in FIG. 4F includes a status bar 461, a tablebar 462 of the “banner”, an “ALL” option 463, an application table 463,and a navigation bar 464 according to a sequence from top to bottom. Aleft side of the table bar of the banner includes a return button 465 ofan arrow shape, and the return button 465 is used to return to the userinterface shown in FIG. 4E. When a toggle in the “ALL” option isdisabled, the processor disables the prompt manner of the banner of thenotification message of one type of application. The prompt manner ofthe banner of this type of application is currently enabled. When thetoggle in the ALL option is enabled, the user may choose whether toenable the prompt manner of the banner of each application in this typeof application. The application table includes all options of this typeof application: a “browser” option, an “email” option, a “music” option,a “photo” option, an “SMS message” option, and a “game” option. Anoption of each application includes an application icon, an applicationname, and a toggle that is used to set whether to disable the bannerprompt manner of the notification message for the application and thatis located on a right side of the option. When the user interface afterthe user setting is shown in FIG. 4F, and the user taps the returnbutton to exit the user interface shown in FIG. 4F, the processor storesthe setting about the prompt manner of the banner of this type ofapplication to the data setting item in the memory.

It should be noted that an example in which only the “SMS message”option is selected is used in FIG. 4B and FIG. 4C. If an option ofanother application is selected, a setting interface for a prompt mannerof a notification message for the other application is similar to thatin FIG. 4C.

Similarly, the user interface in FIG. 4E is merely an example. Thepop-up window of the classification may also include only fourclassifications: the “notification panel”, the “banner”, the “badge”,and the “lockscreen notification”, and further includes the “cancel”button.

Likewise, an example in which only the “banner” option is selected isused in FIG. 4E and FIG. 4F. When another classification option isselected, a setting interface for a prompt manner of a notificationmessage for an application corresponding to the other classificationoption is similar to that in FIG. 4F. For example, if the “blocking allnotification messages for the application at a time” option is selected,options of all applications corresponding to the “blocking allnotification messages for the application at a time” are displayed. Anoption of each application includes an application icon, an applicationname, and a toggle that is used to set whether to disable all UI promptmanners of a notification message for the application and that islocated on a right side of the option. If a result after the usersetting is that all the UI prompt manners of the notification messagefor the application are disabled, subsequently all notification messagesfor the application are not prompted in a UI manner. If a result afterthe user setting is that all the UI prompt manners of the notificationmessage for the application are not disabled, the user may furtherseparately set the UI prompt manners of the notification messages forthe application using another setting manner. For example, the user maychoose, according to a requirement of the user, to enable some UIprompts and disable some other UI prompts.

Scenario 2

A processor classifies, according to an application type, allapplications that are capable of providing notification messages andthat have been installed in a memory. The application type isclassifying all the applications according to frequency that anotification message for an application is opened by a user, includingdaily attention, weekly attention, and monthly attention, and basicallyno attention. By counting a quantity of times of opening thenotification message within a period of time of using a terminal by theuser, the application may be classified according to the frequency thatthe notification message for the application is opened by the user. Aprompt manner of the notification message counted herein includes all UIprompt manners.

In an implementation, a quantity of times N of opening the notificationmessage for the application by the user in one month may be countedusing a method shown in FIG. 5A, and the method shown in FIG. 5Aincludes the following steps.

501. After a time period used to count a notification message for anapplication starts, a processor determines whether there is a newnotification message for the application.

For example, the processor determines whether an RF circuit receives anew notification message for the application sent by an applicationserver, or the processor determines whether the processor generates anew notification message. If there is a new notification message, theprocessor performs step 502; and if there is no new notificationmessage, the processor continues to perform step 501.

502. The processor determines whether a user has read the newnotification message, and this may be: the processor determines,according to feedback of a touch panel, whether the user taps the newnotification message. If the new notification message is tapped, theprocessor performs 503; and if the new notification message is nottapped, the processor performs step 501.

503. The processor increases N of the application corresponding to thenew notification message by 1. After the time period used to count thenotification message for the application starts, an initial value of Nis 0.

504. The processor determines whether the time period used to count thenotification message for the application ends. If the time period ends,the processor performs step 505; and if the time period does not end,the processor performs step 501. It may be understood that this step mayalso be performed before step 501, and the processor starts to performstep 501 only when the time period does not end.

505. After the time period used to count the notification message forthe application ends, the processor determines a value range into whichN of each application falls. For details, refer to a value range inTable 2. Table 2 further provides a toggle for an option of a UI promptmanner of a notification message corresponding to each application type.A “whether to disable all UI prompt manners of the notification message”option may be further replaced with a “whether to enable all UI promptmanners of the notification message” option, or be replaced with“whether to enable one specific UI prompt manner of the notificationmessage”, or be replaced with “whether to enable several specific UIprompt manners of the notification message”. This is not limited in thisembodiment of the present disclosure.

TABLE 2 Quantity of times N of opening the notification message for theapplication Switch button for the option of by the user in one the UIprompt manner of the month Application type notification message N > 30Daily attention Whether to disable all the UI prompt manners of thenotification message 8 < N < 30 Weekly attention Whether to disable allthe UI prompt manners of the notification message 2 < N < 8 Monthlyattention Whether to disable all the UI prompt manners of thenotification message N < 2 Basically no Whether to disable all the UIattention prompt manners of the notification message

506 a. When N of an SMS message is greater than 30, the processordetermines that the application type of the SMS message is “dailyattention”, and steps 506 b to 506 d are deduced by analogy. Fordetails, refer to FIG. 5A and Table 2, and details are not describedherein again.

It may be understood that the value range provided in the foregoingmethod is merely an example. When N=30, the application may beclassified, according to a requirement, that the application belongs towhich application type close to “daily attention” or close to “weeklyattention”. Persons skilled in the art may further set another valueaccording to an actual requirement, and this is not limited in thepresent disclosure.

It should be noted that after the foregoing application type isdetermined, the processor stores, in the memory, a correspondencebetween an application type corresponding to each application and anidentifier of the application. When needing to draw a table interface ofan application corresponding to an application type, the processor readsthe application type of each application or the correspondence to drawthe table interface of the application corresponding to the applicationtype.

The following gives a description with reference to FIG. 4D, FIG. 5B,and FIG. 5C.

In the scenario 2, when the touch panel detects that the user taps a“classification” button in an interface for notification managementshown in FIG. 4D, the processor draws a user interface forclassification of the application according to a classification resultof the application in the foregoing steps 501 to 506 and a display paneldisplays a pop-up window for classification shown in FIG. 5B. The pop-upwindow includes five selectable classification options: a “dailyattention” option, a “weekly attention” option, a “monthly attention”option, and a “basically no attention” option, and the pop-up windowfurther includes a cancel button.

When the touch panel detects that the user selects the “daily attention”option in the interface shown in FIG. 5B, the touch panel displays auser interface shown in FIG. 5C, and the user interface includes astatus bar, a “daily attention” table bar, an “ALL” option, anapplication table, and a navigation bar according to a sequence from topto bottom. A left side of the “daily attention” table bar includes areturn button of an arrow shape, and the return button is used to returnto the user interface shown in FIG. 5B. When a toggle of the “ALL”option is disabled, the processor disables a UI prompt manner of anotification message for all applications whose application type is“daily attention”. When a toggle of the ALL option is enabled, the usermay choose whether to enable a UI prompt manner of a notificationmessage for each application of all applications corresponding to the“daily attention”. An application table in FIG. 5C includes options ofall applications whose application type is “daily attention”: a“browser” option, an “email” option, and an “SMS message” option. Anoption of each application includes an application icon, an applicationname, and a toggle that is used to set whether to disable all UI promptmanners of the notification message for the application and that islocated on a right side of the option. When the user interface after theuser setting is shown in FIG. 5C, and the user taps the return button toexit the user interface shown in FIG. 5C, the processor stores, to adata setting item in the memory, the setting that all the UI promptmanners of applications whose application type is “daily attention” aredisabled.

Scenario 3

A processor classifies, according to a quantity of notification messagesfor an application within a period of time, all applications that havebeen installed in a memory and that are capable of providingnotification messages. These application types include: frequentlyproviding a notification message, often providing a notificationmessage, occasionally providing a notification message, and basicallyproviding no notification message. The application may be classifiedaccording to the quantity of notification messages for the applicationby counting the quantity of notification messages for the applicationwithin the period of time. A prompt manner of the notification messageherein includes all UI prompt manners.

In an implementation, the quantity M of notification message for theapplication in one month may be counted using a method shown in FIG. 6A,and the method shown in FIG. 6A includes the following steps.

601. After a time period used to count a notification message for anapplication starts, a processor determines whether there is a newnotification message for the application.

A determining method is similar to step 501, and is not repeated herein.If there is the new notification message, the processor performs step602; and if there is no new notification message, the processorcontinues to perform step 601.

602. The processor increases M of the application corresponding to thenew notification message by 1. After the time period used to count thenotification message for the application starts, an initial value of Mis 0.

603. The processor determines whether the time period used to count thenotification message for the application ends. If the time period ends,the processor performs step 604; and if the time period does not end,the processor performs step 601. Similar to step 504, this step may alsobe performed before step 601, and the processor starts to perform step601 only when the time period does not end.

604. After the time period used to count the notification message forthe application ends, the processor determines a value range into whichN of each application falls. For details, refer to a value range inTable 3. Table 3 further provides a toggle for an option of a UI promptmanner of a notification message corresponding to each application type.A “whether to enable all UI prompt manners of the notification message”option may also be replaced with a “whether to disable all UI promptmanners of the notification message” option, or be replaced with“whether to enable one specific UI prompt manner of the notificationmessage”, or be replaced with “whether to enable several specific UIprompt manners of the notification message”. This is not limited in thisembodiment of the present disclosure.

TABLE 3 Quantity M of Switch button for the option of notification theUI prompt manner of the messages Application type notification messageM > 21 Frequently providing Whether to enable all the UI thenotification prompt manners of the notification message message 7 < M <21 Often providing the Whether to enable all the UI notification messageprompt manners of the notification message 2 < M < 7 Occasionallyproviding Whether to enable all the UI the notification prompt mannersof the notification message message M < 2 Basically providing Whether toenable all the UI no notification prompt manners of the notificationmessage message

605 a. When M of an email is greater than 21, the processor determinesthat the application type of the email is “frequently providing thenotification message”, and steps 605 b to 605 d are deduced by analogy.For details, refer to FIG. 6A and Table 6, and details are not describedherein again.

It should be noted that the value range provided in Table 3 is merely anexample. When M=7, the application may be classified, according to arequirement, that the application belongs to the application type of“occasionally providing the notification message” or “often providingthe notification message”. Persons skilled in the art may further setanother value according to an actual requirement, and this is notlimited in the present disclosure.

It should be noted that after the foregoing application type isdetermined, the processor stores, in the memory, a correspondencebetween an application type corresponding to each application and anidentifier of the application. When needing to draw a table interface ofan application corresponding to an application type, the processor readsthe application type of each application or the correspondence to drawthe table interface of the application corresponding to the applicationtype.

The following gives a description with reference to FIG. 4D, FIG. 6B,and FIG. 6C.

In the scenario 3, when the touch panel detects that the user taps a“classification” button in an interface for notification managementshown in FIG. 4D, the processor draws a user interface forclassification of the application according to a classification resultof the application in the foregoing steps 601 to 605 and a display paneldisplays a pop-up window for classification shown in FIG. 6B. The pop-upwindow includes five selectable classification options: a “frequentlyproviding the notification message” option, an “often providing thenotification message” option, an “occasionally providing thenotification message” option, and a “basically providing no notificationmessage” option, and the pop-up window further includes a cancel button.

When the touch panel detects that the user selects the “frequentlyproviding the notification message” option in the interface shown inFIG. 6B, the touch panel displays a user interface shown in FIG. 6C. Theuser interface includes a status bar, a “frequently providing thenotification message” table bar, an “ALL” option, and an applicationtable, and a navigation bar according to a sequence from top to bottom.A left side of the “frequently providing the notification message” tablebar includes a return button of an arrow shape, and the return button isused to return to the user interface shown in FIG. 6B. When a toggle ofthe “ALL” option is disabled, the processor disables a UI prompt mannerof a notification message for all applications whose application type is“frequently providing the notification message”. When a toggle of theALL option is enabled, the user may choose whether to enable a UI promptmanner of a notification message for each application of allapplications whose application type is “frequently providing thenotification message”. An application table in FIG. 6C includes optionsof all applications whose application type is “frequently providing thenotification message”: a “Taobao” option, an “email” option, and an “SMSmessage” option. An option of each application includes an applicationicon, an application name, and a toggle that is used to set whether toenable all UI prompt manners of the notification message for theapplication and that is located on a right side of the option. When theuser interface after the user setting is shown in FIG. 6C, and the usertaps the return button to exit the user interface shown in FIG. 6C, theprocessor stores, to a data setting item in the memory, the setting thatall the UI prompt manners of applications whose application type is“frequently providing the notification message” are enabled.

Scenario 4

Different from the foregoing scenarios, in this scenario, a processorclassifies, according to a UI prompt manner of a notification message,an application of a prompt of the notification message currently beingdisplayed. Because a lockscreen notification is usually displayed onlyin a lockscreen interface, after a mobile terminal is unlocked, thelockscreen notification is not displayed. When the notification messagejust arrives, a banner usually performs a prompt. The two types ofprompts are usually difficult to continuously exist. Therefore, theapplication of the prompt of the notification message currently beingdisplayed may be classified into the following two types: currentlyprompting the notification message in a notification panel, andcurrently prompting the notification message using a badge. It may beunderstood that the application of the prompt of the notificationmessage currently being displayed may also be classified according to aUI prompt manner of another notification message.

When a touch panel detects that a user taps a “classification” option ina user interface shown in FIG. 4D, a display panel displays a pop-upwindow shown in FIG. 7A. The pop-up window includes the “currentlyprompting the notification message in the notification panel” option andthe “currently prompting the notification message using a badge” option,and further includes a “cancel” button. When the touch panel detectsthat the user taps the “currently prompting the notification message inthe notification panel” option in the user interface shown in FIG. 7A,the processor reads a display status of notification messages of allapplications, identifies an application that is currently prompting thenotification message in the notification panel, and draws a userinterface shown in FIG. 7B.

The user interface shown in FIG. 7B includes a status bar, a “currentlyprompting the notification message in the notification panel” table bar,an “ALL” option, an application table, and a navigation bar according toa sequence from top to bottom. A left side of the “currently promptingthe notification message in the notification panel” table bar includes areturn button of an arrow shape, and the return button is used to returnto the user interface shown in FIG. 6A. When a toggle of the “ALL”option is disabled, the processor disables a UI prompt manner of anotification message for all applications whose application type is“currently prompting the notification message in the notificationpanel”. When a toggle of the ALL option is enabled, the user may choosewhether to enable a UI prompt manner of a notification message for eachapplication of all applications whose application type is “currentlyprompting the notification message in the notification panel”. Anapplication table in FIG. 7B includes options of all applications whoseapplication type is “currently prompting the notification message in thenotification panel”: a “Taobao” option, an “email” option, an “SMSmessage” option, and an “email” option. An option of each applicationincludes an application icon, an application name, and a toggle that isused to set whether to enable all UI prompt manners of the notificationmessage for the application and that is located on a right side of theoption. When the user interface after the user setting is shown in FIG.7B, and the user taps the return button to exit the user interface shownin FIG. 7B, the processor stores, to a data setting item in the memory,the setting that all the UI prompt manners of applications whoseapplication type is “currently prompting the notification message in thenotification panel” are enabled.

It may be understood that the user interface shown in FIG. 7B may befurther used by the user to set whether to clear the notificationmessage in the notification panel. When the “ALL” option is disabled,the processor clears notification messages in the notification panel forall applications whose application type is “currently prompting thenotification message in the notification panel”. When the ALL option isenabled, the user may choose whether to clear a notification message inthe notification panel for each of all applications whose applicationtype is “currently prompting the notification message in thenotification panel”. Correspondingly, an option of each applicationincludes an application icon, an application name, and a button that isused to set whether to clear the notification message currently beingdisplayed in the notification panel for the application and that islocated on a right side of the option. When the user interface after theuser setting is shown in FIG. 7B, and the user taps the return button toexit the user interface shown in FIG. 7B, the processor clears thenotification messages in the notification panel for all the applicationswhose application type is “currently prompting the notification messagein the notification panel”. When the touch panel detects a user-inputoperation for accessing the notification panel, the display paneldisplays a user interface for the notification panel from which allnotification messages are cleared.

It should be noted that the terminal may support only one of thescenario 1 to the scenario 4, that is, there is only one classificationcriterion for an application. In this case, when the touch panel detectsthat the user selects the “classification” option, the display paneldisplays a user interface for application classification shown in FIG.4E, FIG. 5B, FIG. 6B, or FIG. 7A. The terminal may also support at leasttwo of the scenario 1 to the scenario 4. In this case, there are atleast two classification criteria for the application, and an option foreach of the at least two classification criteria may be provided in aninterface for notification management, or another user interface, andthe user chooses to use a specific classification criterion to classifythe application.

In the foregoing implementations, the touch panel may also be replacedwith another input unit. Various instructions and gestures may becustomized by the user, or may be set by a terminal vendor or anapplication provider. The instructions or the gestures may beimplemented in a plurality of manners, for example, tap (tap), doubletap (double tap), touch and hold (touch and hold), drag (drag), slide(slide), and swipe (swipe). Layout of the foregoing various userinterfaces is merely an example, and a specific implementation is notlimited in the present disclosure.

The foregoing descriptions are merely example embodiments of the presentdisclosure, but are not intended to limit the protection scope of thepresent disclosure. Any equivalent modifications made according to theclaims of the present disclosure still fall within the scope of thepresent disclosure.

1. An electronic device, comprising: a display panel; at least one processor coupled to the display panel; and a memory coupled to the at least one processor and storing one or more programs configured to be executed by the at least one processor to cause the electronic device to: detect a first input; display a first user interface (UI) for notification management in response to the first input, wherein the first UI displays a classification item; detect a second input on the classification item in the first UI; display, in response to the second input, a first application type for a first plurality of applications and a second application type for a second plurality of applications, wherein the first application type is different than the second application type; detect a third input on the first application type; display, in response to the third input, a second UI for notification management, wherein the second UI displays a first identifier of a first application corresponding to the first application type, a second identifier of a second application corresponding to the first application type, a first toggle configured to disable a first UI notification message prompt manner for the first application, and a second toggle configured to disable a second UI notification message prompt manner for the second application; detect a fourth input on the first toggle; disable the first UI notification message prompt manner for the first application in response to the fourth input; detect a fifth input on the second toggle; and disable the second UI notification message prompt manner of the second application in response to the fifth input.
 2. The electronic device of claim 1, wherein the first UI notification message prompt manner comprises a lockscreen notification, a banner, a badge, a notification panel, a rolling notification, or a toast.
 3. The electronic device of claim 1, wherein the first application type corresponds to: applications frequently providing notification messages, applications often providing notification messages, applications occasionally providing notification messages, or applications providing no notification message.
 4. The electronic device of claim 1, wherein the first application type is classified according to at least one of: a frequency that an application provides notification messages, a frequency that notification messages for an application are read, or a prompt manner of a notification message for an application currently being prompted.
 5. The electronic device of claim 1, wherein the second application type is classified according to at least one of: a frequency that an application provides notification messages, a frequency that notification messages for an application are read, or a prompt manner of a notification message for an application currently being prompted.
 6. The electronic device of claim 1, wherein the second application type corresponds to: applications for which all notification messages can be blocked at a same time, applications prompted with a lockscreen notification, applications prompted with a banner, applications prompted with a badge, applications prompted with a notification panel, applications prompted with a rolling notification, or applications prompted with a toast.
 7. The electronic device of claim 1, wherein the one or more programs further cause the electronic device to be configured to: detect a sixth input on a first application item of a plurality of application items in the first UI, wherein the first application item corresponds to a third application; and display a third UI for setting a prompting manner of a notification message for the third application in response to the sixth input, wherein the third UI comprises a third toggle configured to disable all prompt manners of a notification message for the third application, and a fourth toggle configured to disable a prompt manner of a badge for the third application.
 8. The electronic device of claim 1, wherein the classification item is located above a plurality of application items.
 9. An electronic device, comprising: a display panel; at least one processor coupled to the display panel; and a memory coupled to the at least one processor and storing one or more programs configured to be executed by the at least one processor to cause the electronic device to: detect a first input; display a first user interface (UI) for notification management in response to the first input, wherein the first UI displays a classification item; detect a second input on the classification item in the first UI; display, in response to the second input, a first application type for a first plurality of applications and a second application type for a second plurality of applications, wherein the first application type is different than the second application type; detect a third input on the first application type; display a second UI for notification management in response to the third input, wherein the second UI displays a first identifier of a first application corresponding to the first application type, a second identifier of a second application corresponding to the first application type, a first toggle configured to disable all UI notification message prompt manners for the first application, and a second toggle configured to disable all UI notification message prompt manners for the second application; detect a fourth input on the first toggle; disable all UI notification message prompt manners for the first application in response to the fourth input; detect a fifth input on the second toggle; and disable all UI notification message prompt manners for the second application in response to the fifth input.
 10. The electronic device of claim 9, wherein the UI notification message prompt manners for the first application comprise at least two of a lockscreen notification, a banner, a badge, a notification panel, a rolling notification, or a toast, and wherein the UI notification message prompt manners for the second application comprise at least two of the lockscreen notification, the banner, the badge, the notification panel, the rolling notification, or the toast.
 11. The electronic device of claim 9, wherein the first application type corresponds to: applications frequently providing notification messages, applications often providing notification messages, applications occasionally providing notification messages, applications providing no notification message.
 12. The electronic device of claim 9, wherein the first application type is classified according to at least one of a frequency that an application provides notification messages, a frequency that notification messages for an application are read, or a prompt manner of a notification message for an application currently being prompted.
 13. The electronic device of claim 9, wherein the second application type is classified according to at least one of a frequency that an application provides notification messages, a frequency that notification messages for an application are read, or a prompt manner of a notification message for an application when prompted.
 14. The electronic device of claim 9, wherein the second application type corresponds to: applications of which all notification messages can be blocked at a time, applications prompted with a lockscreen notification, applications prompted with a banner, applications prompted with a badge, applications prompted with a notification panel, applications prompted with a rolling notification, or applications prompted with a toast.
 15. A method, comprising: detecting a first input on a display panel; display, using the display panel, a first user interface (UI) for notification management in response to the first input, wherein the first UI displays a classification item; detecting a second input on the classification item in the first UI; displaying, using the display panel and in response to the second input, a first application type for a first plurality of applications and a second application type for a second plurality of applications, wherein the first application type is different than the second application type; detecting a third input on the first application type; displaying, using the display panel and in response to the third input, a second UI for notification management, wherein the second UI displays a first identifier of a first application corresponding to the first application type, a second identifier of a second application corresponding to the first application type, a first toggle configured to disable a first UI notification message prompt manner for the first application, and a second toggle configured to disable a second UI notification message prompt manner for the second application; detecting a fourth input on the first toggle; disabling the first UI notification message prompt manner for the first application in response to the fourth input; detecting a fifth input on the second toggle; and disabling the second UI notification message prompt manner of the second application in response to the fifth input.
 16. The method of claim 15, wherein the first UI notification message prompt manner comprises a lockscreen notification, a banner, a badge, a notification panel, a rolling notification, or a toast.
 17. The method of claim 15, wherein the first application type corresponds to: applications frequently providing notification messages, applications often providing notification messages, applications occasionally providing notification messages, applications providing no notification message.
 18. The method of claim 15, wherein the first application type is classified according to at least one of: a frequency that an application provides notification messages, a frequency that notification messages for an application are read, or a prompt manner of a notification message for an application currently being prompted.
 19. The method of claim 15, wherein the second application type is classified according to at least one of: a frequency that an application provides notification messages, a frequency that notification messages for an application are read, or a prompt manner of a notification message for an application currently being prompted.
 20. The method of claim 15, wherein the second application type corresponds to: applications for which all notification messages can be blocked at a same time, applications prompted with a lockscreen notification, applications prompted with a banner, applications prompted with a badge, applications prompted with a notification panel, applications prompted with a rolling notification, or applications prompted with a toast. 